﻿using System;
using EkStudio.com.bean.xml.BillModule;
using EkStudio.com.bean.xml.reflection;
using EkStudio.com.bean.xml.RootInterface;
using EkStudio.com.bean.xml.Unit;

namespace EkStudio.com.bean.xml.BillChart
{
    public class BillChartModuleInfoRoot:BillObjectInterface
    {
        private string key = "";
        private string caption = "";
        private string languageTexts = "";
        private string groupList = "";
        private string javaPackage = "";
        private bool listMenu = true;
        private string rootVersion = BeanUtil.VERSION;

        private BillChartModuleAdvanced advanced = null;

        private BillModuleOwner owner = null;


        [Xml]
        public string Key
        {
            get
            {
                return key;
            }

            set
            {
                key = value;
            }
        }
        [Xml]
        public string Caption
        {
            get
            {
                return caption;
            }

            set
            {
                caption = value;
            }
        }
        [Xml]
        public string LanguageTexts
        {
            get
            {
                return languageTexts;
            }

            set
            {
                languageTexts = value;
            }
        }
        [Xml]
        public string GroupList
        {
            get
            {
                return groupList;
            }

            set
            {
                groupList = value;
            }
        }
        [Xml]
        public bool ListMenu
        {
            get { return listMenu; }
            set { listMenu = value; }
        }

        [Xml]
        public string JavaPackage
        {
            get
            {
                return javaPackage;
            }

            set
            {
                javaPackage = value;
            }
        }
        [Xml]
        public string RootVersion
        {
            get
            {
                return rootVersion;
            }

            set
            {
                rootVersion = value;
            }
        }
        [XmlElement]
        public BillChartModuleAdvanced Advanced
        {
            get
            {
                return advanced;
            }

            set
            {
                advanced = value;
            }
        }
        [XmlElement]
        public BillModuleOwner Owner
        {
            get
            {
                return owner;
            }

            set
            {
                owner = value;
            }
        }

        public object ParentBean
        {
            get { return null; }
            set { }
        }

        public object Clone()
        {
            return new BillChartModuleInfoRoot();
        }
    }
}
